home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
033a
/
sb_event.zip
/
SBEVENT.DOC
< prev
next >
Wrap
Text File
|
1990-07-29
|
5KB
|
116 lines
07/29/90
Silver Bullet Sysop;
Please forgive the disarray of these docs I have been developing this timed
event function for some time now and feel that it is time for you to take alook
at it and tell me what you think. Even though it can use some polish I
felt it was such a needed item for the bullet I decided to ask you to take
it if you want and use it for your timed events. (Backing up files,creating
bulletins, creating the allfiles.txt and zip files)
I often thought it was quite strange that we are among the most powerful
PC programers and yet when you call are boards you can't even get an up
to-date compressed ALLFILES list from most of the bullets. My personal
solution was this little EVENT FUNCTION that you can add to your main
program buy simply renaming your SAVER FUNCTION found in the SBMISC.PRG
to SAVER_ and linking in SB_EVENT.OBJ along side of whereever you are
linking the SBMISC.PRG now. I have included my ALINK .LNK file as an
example.
The Bullet is realy quit good but we as programers must help
complete it with more GOODIES and one of them of course is an event
timer and implementaion device. Please give me some feed back on this.
The editor will be done soon.. But for now use DBU just be sure to
pack the event database file because it looks for a RECNO().
Bob
* *********************************************************************
* NOTE!
* In order to use this FUNCTION OBJ
*
* 1. You MUST use screen saver
* 2. You MUST be able to compile your source code.
*
* The SCREEN SAVER function MUST be used in order for this function
* to work at all. In other words if you have a "0" in the screen save
* field this function will NOT work as designed. I can't imagine anyone
* not using it but I'm sure there is someone out there who isn't.
* **********************************************************************
* The database field EVENT_TIME is (5 numeric + 2 decimals)
* total of 7 + 1 = 8 for the decimal (example 86000.00) These are Seconds
* (0.00) = 12:00 AM as well as (86400.00)=24:00 hours (thats the MAX allowed)
* (86340.00)= 11:59 PM
*
* The variable LAST_EVENT is a Date field to compare to
*
* This function checks for the CURRENT EVENT TIME, MAX WAIT TIME, DATE.
* Also it adds EV_LAPSE to the event time so if someone is online at
* the time the event is supposed to take place it will execute as soon
* as the screen saver kicks in, if you need a longer checking period
* increase the EV_LAPSE Seconds to whatever you want, up to 86400.
*
* You must add 3 new fields to the SBPARMS.dbf as follows ....
*
* EVENT_TIME N 8 (NUMERIC) <-- Enter data in seconds.(#####.##)
* Don't forget the decimal
*
* LAST_EVENT D 8 (DATE) <-- Enter last date an event took place.
* This field will be automaticly
* updated as a new event takes place.
*
* EV_LAPSE N 8 (NUMERIC) <-- Enter data in seconds.(#####.##)
* Don't forget the decimal.
The forth comming edit program will deal in normal time clicks of 15:30 hrs etc
In the SB_EVENT.DBF include the command to call the top ten uploaders
file I sent with this pkg.
:
To get going:
(A)
1.........Add the fields to SBPARMS as above.
2.........Leave the EVENT_TIME blank. (This would normaly mean 12 Midnite)
3.........Put yesterdays date in LAST_EVENT.
4.........Put 86400.00 in EV_LAPSE
(B)
Rename FUNCTION SAVER found in the MISC.prg to " FUNCTION SAVER_"
(C)
CHANGE YOUR .LNK FILE TO INCLUDE SB_EVENT.OBJ IN THE SAME MODULE
AS THE MISC.PRG IS IN.
(D)
Add in the 1 line of code for the "menu_time()" as described in the
BUL_MOD.PRG.
(E)
ZIP UP OR MOVE YOUR CURRENT SBULLET.EXE & OVL FILES FOR SAFE KEEPING.
And your ready to go..
The source will be released ASAP after I document it and you have
tested and reported anything you would like to see improved or
changed. TO the Orlando Bullet (407) 277-2007
I use ALINK overlay managment and thought I'd comment on it as I
went along for a friend whom I have sent these files to as well,
so you will run into a few comments that make no sense unless use
also use ALINK.. (I hope RT-LINK is better or I'm getting BLINKER).
PLEASE:
If at all possible let me know how it goes...
Best Wishes and GOOD-BYE from The SUNSHINE STATE
Bob Morgan
The Orlando Bullet
(407) 277-2007